#ifndef TREERENDER_H
#define TREERENDER_H
#include "common.h"
#include "treegen.h"
#include <GL/glu.h>
class TreeRender
{
public:
    TreeRender();
    void drawTree(TreeGen *tree);
    void animateTree();
    void drawBranch(float3 start, float3 end, float phi, float theta, float length, float diameter);
    void drawLeaf();
    void drawBud(Bud *b);
    void drawFlower();
private:
         GLUquadric *mQuadric;
         void recurDraw(Bud *b);
};

#endif // TREERENDER_H
